package se.zens.demo.wsapp.interfaces.model;

import javax.xml.bind.annotation.XmlType;
@XmlType(name="GetExchangeRateRessponse")
public class GetExchangeRateRessponse extends
		AbstractExchangeRatesServiceResponse
{
	public GetExchangeRateRessponse()
	{
		super();
	}

	private GetExchangeRateRequest request;
	
	private ExchangeRate rate;

	public GetExchangeRateRessponse(int resultCode,
			String resultMessage,
			GetExchangeRateRequest request,
			ExchangeRate rate)
	{
		super(resultCode,resultMessage);
		this.request = request;
		this.rate = rate;
	}

	
	public GetExchangeRateRessponse(GetExchangeRateRequest request)
	{
		this.request = request;
	}


	public GetExchangeRateRequest getRequest()
	{
		return request;
	}

	public void setRequest(GetExchangeRateRequest request)
	{
		this.request = request;
	}

	public ExchangeRate getRate()
	{
		return rate;
	}

	public void setRate(ExchangeRate rate)
	{
		this.rate = rate;
	}


	@Override
	public String toString()
	{
		return "GetExchangeRateRessponse [request=" + request + ", rate="
				+ rate + "]";
	}


	

	

	
	
}
